package com.hospicpc.demos.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hospicpc.demos.entity.FollowUser;
import com.hospicpc.demos.entity.UserInfo;
import com.hospicpc.demos.entity.dto.UserInfoDto;
import com.hospicpc.demos.mapper.UserInfoMapper;
import com.hospicpc.demos.service.FollowUserService;
import com.hospicpc.demos.mapper.FollowUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author t
* @description 针对表【tb_follow_user】的数据库操作Service实现
* @createDate 2024-03-26 15:31:55
*/
@Service
public class FollowUserServiceImpl extends ServiceImpl<FollowUserMapper, FollowUser>
    implements FollowUserService{
    @Autowired
    FollowUserMapper followUserMapper;
    @Autowired
    UserInfoMapper userInfoMapper;

    @Override
    public List<UserInfo> getList(Long userId) {

        return userInfoMapper.getFollowListByUserId(userId);
    }
}




